package com.fahai.web.entity;

import com.fahai.utils.DateUtil;
import lombok.Data;

import javax.persistence.Id;
import javax.persistence.Transient;
import java.sql.Timestamp;

/**
 * Created by jiangchong on 2017/5/8.
 */
@Data
public class LawyerInfo {

    @Id
    private Integer lawyerid;

    private String lawyername;

    private String lawyerWxopenid;

    private String lawyerPhone;

    private Integer lawyerGrade;

    private Integer lawyerLevel;

    private Integer lawyerStates;

    private Integer stepStatus;

    private Integer lawyerWorktime;

    private Integer allWorktime;

    private Integer allNumber;

    private Integer allUsers;

    private Integer allMoney;

    private Integer allTxMoney;

    private Integer allDistillMoney;

    private Integer allValidCall;

    private Integer allGoodCall;

    private String usercodes;

    private String lawyerUrl;

    private Boolean isBlacklist;

    private Integer isValid;//0待审核，1正常，2冻结

    private Timestamp addTime;

    private String lawyerPortrait;

    private Integer lawyerSex;

    private String lawyerCompanyName;

    private String introduction;

    private String workingExp;

    private String educationBack;

    private Integer caseNum;

    private Integer pigPrice;

    private Integer telPrice;

    private String fdTakeup;

    private String bankArea;

    private String bankAll;

    private String bankCarName;

    private String carNum;

    private String sysBak;

    private Timestamp createtime;

    private Timestamp updatetime;

    private String bak;

    private String bak1;

    private String bak2;

    @Transient
    public String createtimeStr(){
       return DateUtil.TimeStampToString(this.createtime,"yyyy-MM-dd HH:mm:ss");
    }
}
